package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.UpdateChatterDaoImpl;
import com.asset.salesforce.domain.Post;
import com.asset.salesforce.domain.UpdateChatter;

@Service
@Transactional(readOnly=true)
public class UpdateChatterService {
	
	@Autowired 
	private UpdateChatterDaoImpl  updateChatterDaoImpl;
	@Transactional(readOnly=false)
	public void add(UpdateChatter updateChatter) {
		updateChatterDaoImpl.add(updateChatter);
	}
	
	public UpdateChatter getById(Integer id) {
		return updateChatterDaoImpl.getById(id, new UpdateChatter());
	}
	
	public List<UpdateChatter> updateChatterWithFollow(Integer empId) {
		return updateChatterDaoImpl.updateChatterWithFollow(empId);
	}

}
